<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<h1>
	<fmt:message key="address.form.title" />
</h1>
<c:url var="url" value="/address/saveForm.html" />
<form:form action="${url}" commandName="addressEntity" method="post">
	<fieldset>
		<div class="form-row">
			<label for="city"><fmt:message key="address.form.city" />:</label> 
			<span class="input"><form:input path="city" /></span>
		</div>
		<div class="form-row">
			<label for="street"><fmt:message key="address.form.street" />:</label> 
			<span class="input"><form:input path="street" /></span>
		</div>
		<div class="form-row">
			<label for="streetNumber"><fmt:message key="address.form.streetNumber" />:</label> 
			<span class="input"><form:input path="streetNumber" /></span>
		</div>
		<div class="form-row">
			<label for="postNumber"><fmt:message key="address.form.postNumber" />:</label> 
			<span class="input"><form:input path="postNumber" /></span>
		</div>
		<div class="form-buttons">
			<div class="button">
				<input name="submit" type="submit"
					value="<fmt:message key="button.save"/>" />
			</div>
		</div>
	</fieldset>
</form:form>
